"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var platform_browser_1 = require("@angular/platform-browser");
var animations_1 = require("@angular/platform-browser/animations");
var core_1 = require("@angular/core");
var forms_1 = require("@angular/forms");
var http_1 = require("@angular/http");
var ngx_bootstrap_1 = require("ngx-bootstrap");
var app_routing_module_1 = require("./app-routing.module");
var app_component_1 = require("./app.component");
var oauth_service_1 = require("./lib/service/oauth.service");
var admin_guard_service_1 = require("./lib/service/admin-guard.service");
var main_guard_service_1 = require("./lib/service/main-guard.service");
var member_guard_service_1 = require("./lib/service/member-guard.service");
var http_service_1 = require("./lib/service/http.service");
var admin_module_1 = require("./admin/admin.module");
var index_module_1 = require("./home/index.module");
var main_module_1 = require("./main/main.module");
var member_module_1 = require("./member/member.module");
var local_storage_service_1 = require("./lib/service/local-storage.service");
var session_storage_service_1 = require("./lib/service/session-storage.service");
var ng_zorro_antd_1 = require("ng-zorro-antd");
var ngx_progressbar_1 = require("ngx-progressbar");
var http_2 = require("@angular/common/http");
var tuike_guard_service_1 = require("./lib/service/tuike-guard.service");
var tuike_module_1 = require("./tuike/tuike.module");
var tuike_routing_module_1 = require("./tuike/tuike-routing.module");
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            declarations: [
                app_component_1.AppComponent
            ],
            imports: [
                forms_1.FormsModule,
                forms_1.ReactiveFormsModule,
                platform_browser_1.BrowserModule,
                forms_1.FormsModule,
                http_1.HttpModule,
                app_routing_module_1.AppRoutingModule,
                tuike_routing_module_1.TRoutingModule,
                animations_1.BrowserAnimationsModule,
                http_1.JsonpModule,
                index_module_1.IndexModule,
                main_module_1.MainModule,
                member_module_1.MemberModule,
                admin_module_1.AdminModule,
                tuike_module_1.TuikeModule,
                ngx_bootstrap_1.Ng2BootstrapModule.forRoot(),
                ng_zorro_antd_1.NgZorroAntdModule.forRoot(),
                ngx_progressbar_1.NgProgressModule
            ],
            providers: [
                oauth_service_1.OauthService,
                admin_guard_service_1.AdminGuard,
                main_guard_service_1.MainGuard,
                member_guard_service_1.MemberGuard,
                tuike_guard_service_1.TuikeGuard,
                http_service_1.HttpService,
                local_storage_service_1.LocalStorageService,
                session_storage_service_1.SessionStorageService,
                { provide: http_2.HTTP_INTERCEPTORS, useClass: ngx_progressbar_1.NgProgressInterceptor, multi: true }
            ],
            bootstrap: [app_component_1.AppComponent]
        })
    ], AppModule);
    return AppModule;
}());
exports.AppModule = AppModule;
